import React from 'react';
import {IconStyle} from './assets/iconfont/iconfont';
import {GlobalStyle} from './style';
import {renderRoutes} from "react-router-config";
import router from "./router";
import {HashRouter} from "react-router-dom";

//注入store
import {Provider} from "react-redux";
import store from "./store";

function App() {
    return (
        <Provider store={store}>
            <HashRouter>
                <GlobalStyle/>
                <IconStyle/>
                {renderRoutes(router)}
            </HashRouter>
        </Provider>
    );
}

export default App;
